/**标签 */

import { JsonController, Authorized, Body, HeaderParam, Get, Post, UseBefore, QueryParam} from 'routing-controllers';
import { RequestLog } from '@/middleware/requestLog'
import { Inject, Service } from 'typedi';
import { TagServiceImpl } from '@/impl/TagServiceImpl';
import { JsonResult, msgList, res } from '@/utils/jsonResult';
import { User } from '@/m_res/user'
import {CommentParams } from "@/model/request/Comment";
import config from '@/config'
import { Essayreq } from '@/m_req/Essayreq'

@Service()
@JsonController(config.setPrefix("app/tag"))
export class EssayController {

  @Inject()
  TagServiceImpl!: TagServiceImpl;

  @Inject()
  json!: JsonResult<any>;  // Promise<res<string>> 
  

  //文章添加
  @Post('/list')
  @UseBefore(RequestLog)
  async list():Promise<any>{
    return await this.TagServiceImpl.Taglist();
  }


}